package application;

import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import data.NameConstants;

public class Main extends Application {

	public static final String UIStart_FXML_FILE = "/dialog/UIStart.fxml";

	@Override
	public void start(Stage stage) throws IOException {
		FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(
				UIStart_FXML_FILE));

		Parent root = (Parent) fxmlLoader.load(getClass().getResource(
				UIStart_FXML_FILE).openStream());

		stage.setTitle(NameConstants.DIALOG_TITEL);
		stage.setResizable(false);
		stage.setScene(new Scene(root, 339, 178));
		stage.show();

	}

	@Override
	public void stop() throws Exception {
		super.stop();
	}

	public static void main(String[] args) {
		launch(args);
	}
}
